package com.asiainfo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.asiainfo.bean.UserBean;
import com.asiainfo.common.bean.PageBean;
import com.asiainfo.common.mapper.BaseMapper;


@Repository("mapper.userMapper")
public interface UserMapper extends BaseMapper<UserBean>{
	public UserBean getUser(Integer userID);
	public UserBean getUserAndRole(Integer userID);
	public List<UserBean> getUserAll();
	public List<UserBean> getUserAllListPage(@Param("page") PageBean page);
	public Integer insertUser(UserBean userBean);
	public Integer deleteUser(Integer userID);
	public Integer updateUser(UserBean userBean);
	public UserBean getUserByName(String username);
}
